package book;

public class BookList {
    public Book[] books=new Book[10];
    public int usedSize;
    public BookList(){
        books[0]=new Book("三国演义",50,"罗贯中","小说");
        this.usedSize=1;
    }
    public Book getbook(int pos){
        return books[pos];
    }
    public void setBooks(int pos,Book book){
        books[pos]=book;
    }
    public int getUsedSize(){
        return usedSize;
    }
    public void setUsedSize(int size){
        usedSize=size;
    }
    public boolean fill(){
        if(books.length==usedSize){
            return true;
        }
        return false;
    }
}
